package com.shop.zkmall.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 直播间礼物赠送记录表
 * </p>
 *
 * @author ${author}
 * @since 2025-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cere_buyer_gift_record")
@ApiModel(value="CereBuyerGiftRecord对象", description="直播间礼物赠送记录表")
public class CereBuyerGiftRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "直播间ID")
    private Long roomId;

    @ApiModelProperty(value = "礼物ID")
    private Long giftId;

    @ApiModelProperty(value = "赠送者用户ID")
    private Long senderId;

    @ApiModelProperty(value = "接收者用户ID（主播ID）")
    private Long receiverId;

    @ApiModelProperty(value = "礼物名称快照")
    private String giftName;

    @ApiModelProperty(value = "礼物图片快照")
    private String giftIcon;

    @ApiModelProperty(value = "礼物单价（快照）")
    private BigDecimal price;

    @ApiModelProperty(value = "赠送数量")
    private Integer quantity;

    @ApiModelProperty(value = "此次赠送总金额（price * quantity）")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "赠送时间")
    private LocalDateTime sendTime;


}
